/*
 * 版权信息：北京汉方三陆零科技有限公司</br>
 * Copyright ©2014-2015. All rights reserved.  京ICP备15000045号
 */
package com.lin.factory;
/****************************************************************************
 * com.lin.factory PizzaIngredientFactory.java Created on 2016年1月8日
 * @Author: linfenliang
 * @Description:披萨成分抽象工厂
 * @Version: 1.0
 ***************************************************************************/
public interface PizzaIngredientFactory {

	public Dough createDough();
	public Sauce createSauce();
	public Cheese createCheese();
	public Veggies[] createVeggies();
	public Pepperoni pepperoni();
}
class NYPizzaIngredientFactory implements PizzaIngredientFactory{

	@Override
	public Dough createDough() {
		return new ThinCrustDough();
	}

	@Override
	public Sauce createSauce() {
		return new MarinaraSauce();
	}

	@Override
	public Cheese createCheese() {
		return new ReggianoCheese();
	}

	@Override
	public Veggies[] createVeggies() {
		return new Veggies[]{new Garlic(),new Onion(),new Mushroom(),new RedPepper()};
	}

	@Override
	public Pepperoni pepperoni() {
		return new SlicedPepperoni();
	}
	
}